.class Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;
.super Lcom/burstly/lib/component/networkcomponent/AbstractNetworkConfigurator;
.source "AdmobConfigurator.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/burstly/lib/component/networkcomponent/AbstractNetworkConfigurator",
        "<",
        "Lcom/google/ads/AdRequest;",
        ">;"
    }
.end annotation


# static fields
.field public static final BANNER_300X250:Ljava/lang/String; = "300x250"

.field public static final BANNER_468X60:Ljava/lang/String; = "468x60"

.field public static final BANNER_728X90:Ljava/lang/String; = "728x90"

.field public static final BANNER_SMART:Ljava/lang/String; = "smart"

.field private static final LOG:Lcom/burstly/lib/util/LoggerExt;

.field private static final TAG:Ljava/lang/String;


# instance fields
.field private mAdPubId:Ljava/lang/String;

.field private mAdSize:Lcom/google/ads/AdSize;

.field private mBirthday:Ljava/util/Date;

.field private mCustomNetworkParams:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;"
        }
    .end annotation
.end field

.field private mDeviceTestId:Ljava/lang/String;

.field private mExtras:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field

.field private mGender:Lcom/google/ads/AdRequest$Gender;

.field private mIsInterstitial:Z

.field private mIsPrefetchInterstitial:Z

.field private mKeyWords:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private mSuppressAdmobAutorefresh:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 47
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    .line 52
    const-class v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->TAG:Ljava/lang/String;

    return-void
.end method

.method constructor <init>()V
    .locals 0

    .prologue
    .line 132
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/AbstractNetworkConfigurator;-><init>()V

    .line 133
    return-void
.end method

.method static getAdSize(Ljava/lang/String;)Lcom/google/ads/AdSize;
    .locals 1
    .parameter "adSize"

    .prologue
    .line 347
    const-string v0, "300x250"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 348
    sget-object v0, Lcom/google/ads/AdSize;->IAB_MRECT:Lcom/google/ads/AdSize;

    .line 356
    :goto_0
    return-object v0

    .line 349
    :cond_0
    const-string v0, "468x60"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 350
    sget-object v0, Lcom/google/ads/AdSize;->IAB_BANNER:Lcom/google/ads/AdSize;

    goto :goto_0

    .line 351
    :cond_1
    const-string v0, "728x90"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 352
    sget-object v0, Lcom/google/ads/AdSize;->IAB_LEADERBOARD:Lcom/google/ads/AdSize;

    goto :goto_0

    .line 353
    :cond_2
    const-string v0, "smart"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 354
    sget-object v0, Lcom/google/ads/AdSize;->SMART_BANNER:Lcom/google/ads/AdSize;

    goto :goto_0

    .line 356
    :cond_3
    sget-object v0, Lcom/google/ads/AdSize;->BANNER:Lcom/google/ads/AdSize;

    goto :goto_0
.end method

.method private mergeExtrasMaps(Ljava/util/Map;Ljava/util/Map;)V
    .locals 8
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 321
    .local p1, lowPriority:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    .local p2, highPriority:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    if-eqz p2, :cond_0

    if-eqz p1, :cond_0

    invoke-interface {p2}, Ljava/util/Map;->size()I

    move-result v7

    if-nez v7, :cond_1

    .line 338
    :cond_0
    return-void

    .line 324
    :cond_1
    invoke-interface {p2}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v7

    invoke-interface {v7}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_2
    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v7

    if-eqz v7, :cond_0

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 325
    .local v0, entry:Ljava/util/Map$Entry;,"Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 326
    .local v1, highPriorityKey:Ljava/lang/String;
    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v2

    .line 327
    .local v2, highPriorityValue:Ljava/lang/Object;
    invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v7

    invoke-interface {v7}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v4

    .local v4, i$:Ljava/util/Iterator;
    :cond_3
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v7

    if-eqz v7, :cond_4

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/util/Map$Entry;

    .line 328
    .local v5, lowEntry:Ljava/util/Map$Entry;,"Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-interface {v5}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/String;

    .line 329
    .local v6, lowPriorityKey:Ljava/lang/String;
    invoke-virtual {v1, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_3

    .line 330
    invoke-interface {v5, v2}, Ljava/util/Map$Entry;->setValue(Ljava/lang/Object;)Ljava/lang/Object;

    .line 334
    .end local v5           #lowEntry:Ljava/util/Map$Entry;,"Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v6           #lowPriorityKey:Ljava/lang/String;
    :cond_4
    invoke-interface {p1, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v7

    if-nez v7, :cond_2

    .line 335
    invoke-interface {p1, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0
.end method

.method private setAdSize(Ljava/util/Map;)V
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .prologue
    .line 233
    .local p1, paramsFromServer:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    const-string v2, "adSizeCodeValue"

    invoke-interface {p1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 234
    .local v0, defaultAdSize:Ljava/lang/Object;
    check-cast v0, Ljava/lang/String;

    .end local v0           #defaultAdSize:Ljava/lang/Object;
    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->getAdSize(Ljava/lang/String;)Lcom/google/ads/AdSize;

    move-result-object v2

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mAdSize:Lcom/google/ads/AdSize;

    .line 235
    const-string v2, "adSize"

    invoke-interface {p1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    .line 236
    .local v1, serverAdSize:Ljava/lang/Object;
    if-eqz v1, :cond_0

    .line 237
    check-cast v1, Ljava/lang/String;

    .end local v1           #serverAdSize:Ljava/lang/Object;
    invoke-static {v1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->getAdSize(Ljava/lang/String;)Lcom/google/ads/AdSize;

    move-result-object v2

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mAdSize:Lcom/google/ads/AdSize;

    .line 239
    :cond_0
    return-void
.end method

.method private setBirthday(Ljava/util/Map;)V
    .locals 7
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .prologue
    .line 247
    .local p1, paramsFromServer:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    const-string v1, "birthday"

    invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 248
    .local v0, val:Ljava/lang/String;
    if-eqz v0, :cond_0

    .line 249
    const-string v1, "dd-MM-yyyy"

    invoke-static {v0, v1}, Lcom/burstly/lib/util/Utils;->getDateFromString(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Date;

    move-result-object v1

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mBirthday:Ljava/util/Date;

    .line 250
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->TAG:Ljava/lang/String;

    const-string v3, "AdMob birthday param: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    iget-object v6, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mBirthday:Ljava/util/Date;

    aput-object v6, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 252
    :cond_0
    return-void
.end method

.method private setExtrasParams(Ljava/util/Map;)V
    .locals 10
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .prologue
    .local p1, paramsFromServer:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    const/4 v5, 0x1

    const/4 v6, 0x0

    .line 290
    const-string v3, "extras"

    .line 291
    .local v3, extrasKey:Ljava/lang/String;
    iget-object v7, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mCustomNetworkParams:Ljava/util/Map;

    if-eqz v7, :cond_1

    iget-object v7, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mCustomNetworkParams:Ljava/util/Map;

    const-string v8, "extras"

    invoke-interface {v7, v8}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_1

    move v0, v5

    .line 293
    .local v0, availableDataFromCode:Z
    :goto_0
    const-string v7, "extras"

    invoke-interface {p1, v7}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    .line 294
    .local v2, extrasData:Ljava/lang/Object;
    if-eqz v2, :cond_3

    .line 295
    sget-object v7, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v8, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->TAG:Ljava/lang/String;

    const-string v9, "AdMob server extras params: {0}"

    new-array v5, v5, [Ljava/lang/Object;

    aput-object v2, v5, v6

    invoke-virtual {v7, v8, v9, v5}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-object v4, v2

    .line 298
    check-cast v4, Ljava/util/Map;

    .line 299
    .local v4, serverExtrasData:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    if-eqz v0, :cond_2

    .line 300
    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mCustomNetworkParams:Ljava/util/Map;

    const-string v6, "extras"

    invoke-interface {v5, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map;

    .line 301
    .local v1, codeExtrasData:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-direct {p0, v1, v4}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mergeExtrasMaps(Ljava/util/Map;Ljava/util/Map;)V

    .line 302
    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mExtras:Ljava/util/Map;

    .line 309
    .end local v1           #codeExtrasData:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v4           #serverExtrasData:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_0
    :goto_1
    return-void

    .end local v0           #availableDataFromCode:Z
    .end local v2           #extrasData:Ljava/lang/Object;
    :cond_1
    move v0, v6

    .line 291
    goto :goto_0

    .line 305
    .restart local v0       #availableDataFromCode:Z
    .restart local v2       #extrasData:Ljava/lang/Object;
    .restart local v4       #serverExtrasData:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_2
    iput-object v4, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mExtras:Ljava/util/Map;

    goto :goto_1

    .line 306
    .end local v4           #serverExtrasData:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_3
    if-eqz v0, :cond_0

    .line 307
    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mCustomNetworkParams:Ljava/util/Map;

    const-string v6, "extras"

    invoke-interface {v5, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/util/Map;

    iput-object v5, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mExtras:Ljava/util/Map;

    goto :goto_1
.end method

.method private setGender(Ljava/util/Map;)V
    .locals 7
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .prologue
    .line 260
    .local p1, paramsFromServer:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    const-string v1, "gender"

    invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 261
    .local v0, gender:Ljava/lang/String;
    if-eqz v0, :cond_0

    .line 262
    const-string v1, "male"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    sget-object v1, Lcom/google/ads/AdRequest$Gender;->MALE:Lcom/google/ads/AdRequest$Gender;

    :goto_0
    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mGender:Lcom/google/ads/AdRequest$Gender;

    .line 263
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->TAG:Ljava/lang/String;

    const-string v3, "AdMob gender param: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    iget-object v6, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mGender:Lcom/google/ads/AdRequest$Gender;

    aput-object v6, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 265
    :cond_0
    return-void

    .line 262
    :cond_1
    sget-object v1, Lcom/google/ads/AdRequest$Gender;->FEMALE:Lcom/google/ads/AdRequest$Gender;

    goto :goto_0
.end method

.method private setInterstitial(Ljava/util/Map;)V
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .prologue
    .line 217
    .local p1, paramsFromServer:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    const-string v2, "isCodeValueInterstitial"

    invoke-interface {p1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 218
    .local v0, defaultInterstitial:Ljava/lang/Object;
    if-eqz v0, :cond_0

    .line 219
    check-cast v0, Ljava/lang/Boolean;

    .end local v0           #defaultInterstitial:Ljava/lang/Object;
    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    iput-boolean v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mIsInterstitial:Z

    .line 221
    :cond_0
    const-string v2, "isInterstitial"

    invoke-interface {p1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    .line 222
    .local v1, serverInterstitial:Ljava/lang/Object;
    if-eqz v1, :cond_1

    .line 223
    const-string v2, "YES"

    check-cast v1, Ljava/lang/String;

    .end local v1           #serverInterstitial:Ljava/lang/Object;
    invoke-virtual {v2, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    iput-boolean v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mIsInterstitial:Z

    .line 225
    :cond_1
    return-void
.end method

.method private setKeyWords(Ljava/util/Map;)V
    .locals 8
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .prologue
    .line 273
    .local p1, paramsFromServer:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    const-string v2, "keyWords"

    invoke-interface {p1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 274
    .local v0, keyWrds:Ljava/lang/String;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_0

    .line 275
    const-string v2, ";"

    invoke-virtual {v0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    .line 277
    .local v1, words:[Ljava/lang/String;
    new-instance v2, Ljava/util/HashSet;

    array-length v3, v1

    int-to-float v3, v3

    const/high16 v4, 0x3f40

    div-float/2addr v3, v4

    float-to-int v3, v3

    invoke-direct {v2, v3}, Ljava/util/HashSet;-><init>(I)V

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mKeyWords:Ljava/util/Set;

    .line 278
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mKeyWords:Ljava/util/Set;

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z

    .line 279
    sget-object v2, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v3, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->TAG:Ljava/lang/String;

    const-string v4, "AdMob keywords param: {0}"

    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/Object;

    const/4 v6, 0x0

    iget-object v7, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mKeyWords:Ljava/util/Set;

    aput-object v7, v5, v6

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 281
    .end local v1           #words:[Ljava/lang/String;
    :cond_0
    return-void
.end method


# virtual methods
.method protected applyClientTargetingParamsToNetwork(Ljava/util/Map;)V
    .locals 5
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 169
    .local p1, clientTargetingParams:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
    const-string v2, "dateOfBirth"

    invoke-interface {p1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 170
    .local v0, val:Ljava/lang/Object;
    check-cast v0, Ljava/lang/String;

    .end local v0           #val:Ljava/lang/Object;
    const-string v2, "dd-MM-yyyy"

    invoke-static {v0, v2}, Lcom/burstly/lib/util/Utils;->getDateFromString(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Date;

    move-result-object v2

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mBirthday:Ljava/util/Date;

    .line 171
    const-string v2, "gender"

    invoke-interface {p1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 172
    .restart local v0       #val:Ljava/lang/Object;
    sget-object v2, Lcom/google/ads/AdRequest$Gender;->UNKNOWN:Lcom/google/ads/AdRequest$Gender;

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mGender:Lcom/google/ads/AdRequest$Gender;

    .line 173
    if-eqz v0, :cond_0

    .line 174
    const-string v2, "male"

    invoke-virtual {v0, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 175
    sget-object v2, Lcom/google/ads/AdRequest$Gender;->MALE:Lcom/google/ads/AdRequest$Gender;

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mGender:Lcom/google/ads/AdRequest$Gender;

    .line 180
    :cond_0
    :goto_0
    const-string v2, "keyWords"

    invoke-interface {p1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 181
    if-eqz v0, :cond_1

    .line 182
    check-cast v0, Ljava/lang/String;

    .end local v0           #val:Ljava/lang/Object;
    const-string v2, " "

    invoke-virtual {v0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    .line 183
    .local v1, words:[Ljava/lang/String;
    new-instance v2, Ljava/util/HashSet;

    array-length v3, v1

    int-to-float v3, v3

    const/high16 v4, 0x3f40

    div-float/2addr v3, v4

    float-to-int v3, v3

    invoke-direct {v2, v3}, Ljava/util/HashSet;-><init>(I)V

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mKeyWords:Ljava/util/Set;

    .line 184
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mKeyWords:Ljava/util/Set;

    invoke-static {v1}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v2, v3}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z

    .line 186
    .end local v1           #words:[Ljava/lang/String;
    :cond_1
    return-void

    .line 176
    .restart local v0       #val:Ljava/lang/Object;
    :cond_2
    const-string v2, "female"

    invoke-virtual {v0, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 177
    sget-object v2, Lcom/google/ads/AdRequest$Gender;->FEMALE:Lcom/google/ads/AdRequest$Gender;

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mGender:Lcom/google/ads/AdRequest$Gender;

    goto :goto_0
.end method

.method public configure(Lcom/google/ads/AdRequest;)V
    .locals 2
    .parameter "objConfigure"

    .prologue
    .line 191
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mBirthday:Ljava/util/Date;

    if-eqz v1, :cond_0

    .line 192
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mBirthday:Ljava/util/Date;

    invoke-virtual {p1, v1}, Lcom/google/ads/AdRequest;->setBirthday(Ljava/util/Date;)Lcom/google/ads/AdRequest;

    .line 194
    :cond_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mGender:Lcom/google/ads/AdRequest$Gender;

    if-eqz v1, :cond_1

    .line 195
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mGender:Lcom/google/ads/AdRequest$Gender;

    invoke-virtual {p1, v1}, Lcom/google/ads/AdRequest;->setGender(Lcom/google/ads/AdRequest$Gender;)Lcom/google/ads/AdRequest;

    .line 197
    :cond_1
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mKeyWords:Ljava/util/Set;

    if-eqz v1, :cond_2

    .line 198
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mKeyWords:Ljava/util/Set;

    invoke-virtual {p1, v1}, Lcom/google/ads/AdRequest;->setKeywords(Ljava/util/Set;)Lcom/google/ads/AdRequest;

    .line 200
    :cond_2
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mDeviceTestId:Ljava/lang/String;

    if-eqz v1, :cond_3

    .line 201
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mDeviceTestId:Ljava/lang/String;

    invoke-virtual {p1, v1}, Lcom/google/ads/AdRequest;->addTestDevice(Ljava/lang/String;)Lcom/google/ads/AdRequest;

    .line 202
    const/4 v1, 0x1

    invoke-virtual {p1, v1}, Lcom/google/ads/AdRequest;->setTesting(Z)Lcom/google/ads/AdRequest;

    .line 204
    :cond_3
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mExtras:Ljava/util/Map;

    if-eqz v1, :cond_4

    .line 205
    new-instance v0, Lcom/google/ads/mediation/admob/AdMobAdapterExtras;

    invoke-direct {v0}, Lcom/google/ads/mediation/admob/AdMobAdapterExtras;-><init>()V

    .line 206
    .local v0, admobExtras:Lcom/google/ads/mediation/admob/AdMobAdapterExtras;
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mExtras:Ljava/util/Map;

    invoke-virtual {v0, v1}, Lcom/google/ads/mediation/admob/AdMobAdapterExtras;->setExtras(Ljava/util/Map;)Lcom/google/ads/mediation/admob/AdMobAdapterExtras;

    .line 207
    invoke-virtual {p1, v0}, Lcom/google/ads/AdRequest;->setNetworkExtras(Lcom/google/ads/mediation/NetworkExtras;)Lcom/google/ads/AdRequest;

    .line 209
    .end local v0           #admobExtras:Lcom/google/ads/mediation/admob/AdMobAdapterExtras;
    :cond_4
    return-void
.end method

.method public bridge synthetic configure(Ljava/lang/Object;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 42
    check-cast p1, Lcom/google/ads/AdRequest;

    .end local p1
    invoke-virtual {p0, p1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->configure(Lcom/google/ads/AdRequest;)V

    return-void
.end method

.method getAdPubId()Ljava/lang/String;
    .locals 1

    .prologue
    .line 365
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mAdPubId:Ljava/lang/String;

    return-object v0
.end method

.method getAdSize()Lcom/google/ads/AdSize;
    .locals 1

    .prologue
    .line 401
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mAdSize:Lcom/google/ads/AdSize;

    return-object v0
.end method

.method isInterstitial()Z
    .locals 1

    .prologue
    .line 392
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mIsInterstitial:Z

    return v0
.end method

.method isPrefetchInterstitial()Z
    .locals 1

    .prologue
    .line 383
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mIsPrefetchInterstitial:Z

    return v0
.end method

.method isSuppressAdmobAutorefresh()Z
    .locals 1

    .prologue
    .line 410
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mSuppressAdmobAutorefresh:Z

    return v0
.end method

.method public readParameters(Ljava/util/Map;)V
    .locals 8
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    .prologue
    .local p1, paramsFromServer:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    const/4 v7, 0x0

    .line 139
    invoke-virtual {p0, p1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->applyClientTargetingIfAllowed(Ljava/util/Map;)V

    .line 141
    const-string v1, "pubID"

    invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mAdPubId:Ljava/lang/String;

    .line 142
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mAdPubId:Ljava/lang/String;

    const-string v2, "pubID can not be null"

    invoke-static {v1, v2}, Lcom/burstly/lib/util/Utils;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 143
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mAdPubId:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mAdPubId:Ljava/lang/String;

    .line 144
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->setInterstitial(Ljava/util/Map;)V

    .line 145
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->setAdSize(Ljava/util/Map;)V

    .line 146
    const-string v1, "supressAutorefresh"

    invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Ljava/lang/String;)Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    iput-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mSuppressAdmobAutorefresh:Z

    .line 148
    const-string v1, "testDeviceId"

    invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mDeviceTestId:Ljava/lang/String;

    .line 149
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mDeviceTestId:Ljava/lang/String;

    if-eqz v1, :cond_0

    .line 150
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v2, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->TAG:Ljava/lang/String;

    const-string v3, "AdMob testing mode enabled. Device test id: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    iget-object v6, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mDeviceTestId:Ljava/lang/String;

    aput-object v6, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 152
    :cond_0
    const-string v1, "admob"

    invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 153
    .local v0, customParams:Ljava/lang/Object;
    if-eqz v0, :cond_1

    .line 154
    check-cast v0, Ljava/util/Map;

    .end local v0           #customParams:Ljava/lang/Object;
    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mCustomNetworkParams:Ljava/util/Map;

    .line 158
    :cond_1
    iput-object v7, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mKeyWords:Ljava/util/Set;

    .line 159
    iput-object v7, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mGender:Lcom/google/ads/AdRequest$Gender;

    .line 160
    iput-object v7, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mExtras:Ljava/util/Map;

    .line 161
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->setBirthday(Ljava/util/Map;)V

    .line 162
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->setGender(Ljava/util/Map;)V

    .line 163
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->setKeyWords(Ljava/util/Map;)V

    .line 164
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->setExtrasParams(Ljava/util/Map;)V

    .line 165
    return-void
.end method

.method setPrefetchInterstitial(Z)V
    .locals 0
    .parameter "isPrefetchInterstitial"

    .prologue
    .line 374
    iput-boolean p1, p0, Lcom/burstly/lib/component/networkcomponent/admob/AdmobConfigurator;->mIsPrefetchInterstitial:Z

    .line 375
    return-void
.end method
